{% extends "list_edit_base.html" %}
{% load bootstrap3 %}
{% block title %} 定期执行计划设置 {% endblock %}
{% block table_body %}
<table class="table small">
    <thead>
        <tr>
            <th>id</th>
            <th>分钟</th>
            <th>小时</th>
            <th>每周第几天</th>
            <th>每月第几天</th>
            <th>月份</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {% for item in item_list %}
            <tr id="item_{{ item.id }}">
                <td>{{ item.id }}</td>
                <td id="item_{{item.id}}_minute">{{ item.minute }}</td>
                <td id="item_{{item.id}}_hour">{{ item.hour }}</td>
                <td id="item_{{item.id}}_day_of_week">{{ item.day_of_week }}</td>
                <td id="item_{{item.id}}_day_of_month">{{ item.day_of_month }}</td>
                <td id="item_{{item.id}}_month_of_year">{{ item.month_of_year }}</td>
                <td>
                    <a href={% url editurl item.id %} type="button">
                        <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
                    </a>
                    <a href={% url "djcelery_crontab_schedule_del" item.id %} onclick="return confirm('确认删除？')">
                        <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                    </a>
                </td>
            </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}
{%block script%}{%endblock%}
